package org.budo.dubbo.protocol.http.aop.permission.app;

import org.budo.dubbo.protocol.http.exception.filter.ProviderSideNoLogException;

/**
 * @author lmw
 */
public class AppPermissionCheckException extends RuntimeException implements ProviderSideNoLogException {
    private static final long serialVersionUID = 1379604293221695196L;

    private String appKey;

    private String permissionName;

    public AppPermissionCheckException(String appKey, String permissionName) {
        this.appKey = appKey;
        this.permissionName = permissionName;
    }

    public String getMessage() {
        return "appPermissionCheck failed, appKey=" + appKey + ", permissionName=" + permissionName;
    }
}